<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
    <title>LuaApp项目接口文档</title>
    <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head>
<body>

<div id="container">

<div id="product">
	<div id="product_logo"></div>
	<div id="product_name"><big><b></b></big></div>
	<div id="product_description"></div>
</div> <!-- id="product" -->


<div id="main">


<!-- Menu -->

<div id="navigation">
<br/>
<h1>LuaApp</h1>

<ul>
  <li><a href="../index.html">Index</a></li>
</ul>

<h2>Contents</h2>
<ul>
<li><a href="#Methods">Methods</a></li>
</ul>


<h2>Classes</h2>
<ul class="nowrap">
  <li><a href="../classes/ActivityIndicatorView.html">ActivityIndicatorView</a></li>
  <li><a href="../classes/AlertView.html">AlertView</a></li>
  <li><a href="../classes/Application.html">Application</a></li>
  <li><a href="../classes/AudioEngine.html">AudioEngine</a></li>
  <li><a href="../classes/Button.html">Button</a></li>
  <li><a href="../classes/CaptureView.html">CaptureView</a></li>
  <li><a href="../classes/CheckBox.html">CheckBox</a></li>
  <li><a href="../classes/ClippingView.html">ClippingView</a></li>
  <li><a href="../classes/Control.html">Control</a></li>
  <li><a href="../classes/DatePickerView.html">DatePickerView</a></li>
  <li><a href="../classes/Device.html">Device</a></li>
  <li><a href="../classes/DownloadManager.html">DownloadManager</a></li>
  <li><a href="../classes/DrawView.html">DrawView</a></li>
  <li><a href="../classes/DrawerController.html">DrawerController</a></li>
  <li><a href="../classes/FileUtils.html">FileUtils</a></li>
  <li><a href="../classes/GifView.html">GifView</a></li>
  <li><a href="../classes/HttpClient.html">HttpClient</a></li>
  <li><a href="../classes/HttpRequest.html">HttpRequest</a></li>
  <li><a href="../classes/Image.html">Image</a></li>
  <li><a href="../classes/ImageView.html">ImageView</a></li>
  <li><a href="../classes/Label.html">Label</a></li>
  <li><a href="../classes/LinearView.html">LinearView</a></li>
  <li><a href="../classes/ListView.html">ListView</a></li>
  <li><a href="../classes/ListViewCell.html">ListViewCell</a></li>
  <li><a href="../classes/NavController.html">NavController</a></li>
  <li><a href="../classes/Progress.html">Progress</a></li>
  <li><a href="../classes/Slider.html">Slider</a></li>
  <li><a href="../classes/Stepper.html">Stepper</a></li>
  <li><a href="../classes/Switch.html">Switch</a></li>
  <li><a href="../classes/TabBarController.html">TabBarController</a></li>
  <li><a href="../classes/TextField.html">TextField</a></li>
  <li><strong>TextView</strong></li>
  <li><a href="../classes/UILoader.html">UILoader</a></li>
  <li><a href="../classes/View.html">View</a></li>
  <li><a href="../classes/ViewController.html">ViewController</a></li>
  <li><a href="../classes/WebView.html">WebView</a></li>
  <li><a href="../classes/Window.html">Window</a></li>
</ul>
<h2>Modules</h2>
<ul class="nowrap">
  <li><a href="../modules/Animation.html">Animation</a></li>
  <li><a href="../modules/class.html">class</a></li>
  <li><a href="../modules/constants.html">constants</a></li>
  <li><a href="../modules/crossapp.html">crossapp</a></li>
  <li><a href="../modules/cjson.html">cjson</a></li>
  <li><a href="../modules/mobdebug.html">mobdebug</a></li>
</ul>
<h2>Topics</h2>
<ul class="">
  <li><a href="../topics/readme.md.html">readme</a></li>
  <li><a href="../topics/layout.md.html">layout</a></li>
</ul>

</div>

<div id="content">

<h1>Class <code>TextView</code></h1>
<p>文本编辑视图,继承自Control</p>
<p>

</p>
    <h3>See also:</h3>
    <ul>
         <a href="../classes/Control.html#">Control</a>
    </ul>


<h2><a href="#Methods">Methods</a></h2>
<table class="function_list">
	<tr>
	<td class="name" nowrap><a href="#TextView:new">TextView:new ()</a></td>
	<td class="summary">创建对象</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TextView:setDelegate">TextView:setDelegate (table)</a></td>
	<td class="summary">设置代理</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TextView:getText">TextView:getText ()</a></td>
	<td class="summary">获取文本</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TextView:setText">TextView:setText (text)</a></td>
	<td class="summary">设置文本</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TextView:getTextColor">TextView:getTextColor ()</a></td>
	<td class="summary">获取文本颜色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TextView:setTextColor">TextView:setTextColor (Color)</a></td>
	<td class="summary">设置文本颜色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TextView:getFontSize">TextView:getFontSize ()</a></td>
	<td class="summary">获取文本大小</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TextView:setFontSize">TextView:setFontSize (size)</a></td>
	<td class="summary">设置文本大小</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TextView:getTextViewAlign">TextView:getTextViewAlign ()</a></td>
	<td class="summary">获取文本对齐方式</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TextView:setTextViewAlign">TextView:setTextViewAlign (align)</a></td>
	<td class="summary">设置文本对齐方式</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TextView:getReturnType">TextView:getReturnType ()</a></td>
	<td class="summary">获取返回值的类型，即输入法完成按钮的文字</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TextView:setReturnType">TextView:setReturnType (type)</a></td>
	<td class="summary">获取返回值的类型，即输入法完成按钮的文字</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#TextView:setBackgroundImage">TextView:setBackgroundImage (Image)</a></td>
	<td class="summary">设置背景图</td>
	</tr>
</table>

<br/>
<br/>


    <h2 class="section-header "><a name="Methods"></a>Methods</h2>

    <dl class="function">
    <dt>
    <a name = "TextView:new"></a>
    <strong>TextView:new ()</strong>
    </dt>
    <dd>
    创建对象



    <h3>Returns:</h3>
    <ol>

        TextView
    </ol>




</dd>
    <dt>
    <a name = "TextView:setDelegate"></a>
    <strong>TextView:setDelegate (table)</strong>
    </dt>
    <dd>
    设置代理


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">table</span>



        </li>
    </ul>




    <h3>Usage:</h3>
    <ul>
        <pre class="example">textView:setDelegate {
   onShouldBeginEditing=<span class="keyword">function</span> (view) <span class="keyword">end</span>,
   onShouldEndEditing=<span class="keyword">function</span> (view) <span class="keyword">end</span>,
   onShouldReturn= <span class="keyword">function</span> (view) <span class="keyword">end</span>,
   keyBoardHeight= <span class="keyword">function</span> (view,height) <span class="keyword">end</span>,
}</pre>
    </ul>

</dd>
    <dt>
    <a name = "TextView:getText"></a>
    <strong>TextView:getText ()</strong>
    </dt>
    <dd>
    获取文本



    <h3>Returns:</h3>
    <ol>

        text
    </ol>




</dd>
    <dt>
    <a name = "TextView:setText"></a>
    <strong>TextView:setText (text)</strong>
    </dt>
    <dd>
    设置文本


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">text</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "TextView:getTextColor"></a>
    <strong>TextView:getTextColor ()</strong>
    </dt>
    <dd>
    获取文本颜色



    <h3>Returns:</h3>
    <ol>

        Color
    </ol>




</dd>
    <dt>
    <a name = "TextView:setTextColor"></a>
    <strong>TextView:setTextColor (Color)</strong>
    </dt>
    <dd>
    设置文本颜色


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">Color</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "TextView:getFontSize"></a>
    <strong>TextView:getFontSize ()</strong>
    </dt>
    <dd>
    获取文本大小



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">int</span></span>
        size
    </ol>




</dd>
    <dt>
    <a name = "TextView:setFontSize"></a>
    <strong>TextView:setFontSize (size)</strong>
    </dt>
    <dd>
    设置文本大小


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">size</span>
            <span class="types"><span class="type">int</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "TextView:getTextViewAlign"></a>
    <strong>TextView:getTextViewAlign ()</strong>
    </dt>
    <dd>
    获取文本对齐方式



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">int</span></span>
        align
[ 0:left 1:center 2:right ]
    </ol>




</dd>
    <dt>
    <a name = "TextView:setTextViewAlign"></a>
    <strong>TextView:setTextViewAlign (align)</strong>
    </dt>
    <dd>
    设置文本对齐方式


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">align</span>
            <span class="types"><span class="type">int</span></span>
        [ 0:left 1:center 2:right ]
        </li>
    </ul>





</dd>
    <dt>
    <a name = "TextView:getReturnType"></a>
    <strong>TextView:getReturnType ()</strong>
    </dt>
    <dd>
    获取返回值的类型，即输入法完成按钮的文字



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">int</span></span>
        type
[ 0：默认 1：完成 2：发送 3：下一步]
    </ol>




</dd>
    <dt>
    <a name = "TextView:setReturnType"></a>
    <strong>TextView:setReturnType (type)</strong>
    </dt>
    <dd>
    获取返回值的类型，即输入法完成按钮的文字


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">type</span>
            <span class="types"><span class="type">int</span></span>
        [ 0：默认 1：完成 2：发送 3：下一步]
        </li>
    </ul>





</dd>
    <dt>
    <a name = "TextView:setBackgroundImage"></a>
    <strong>TextView:setBackgroundImage (Image)</strong>
    </dt>
    <dd>
    设置背景图


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">Image</span>



        </li>
    </ul>





</dd>
</dl>


</div> <!-- id="content" -->
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
<i style="float:right;">Last updated 2017-04-25 21:28:27 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
</html>
